import Layout from '@/layouts/BasicLayout'
import LayoutInset from '@/layouts/LayoutInset'

const maintenanceImplement = {
    path: '/maintenance-implement',
    component: Layout,
    name: 'MaintenanceImplement',
    meta: {
        title: '养护工程',
        code: 'dlyh_r_a4_1'
    },
    redirect: '/maintenance-implement/maintenance-project',
    children: [
        // 本期下架
        // {
        //     path: 'project-manage',
        //     component: LayoutInset,
        //     name: 'ProjectManage',
        //     meta: {
        //         title: '工程信息管理',
        //         iconSvg: 'project-manage',
        //         code: 'dlyh_a4_b8_1'
        //     },
        //     redirect: '/maintenance-implement/project-manage/maintenance-project/index',
        //     children: [
        //         {
        //             path: 'maintenance-project',
        //             name: 'MaintenanceProject',
        //             meta: {
        //                 title: '养护工程',
        //                 code: 'dlyh_b8_c16_1'
        //             },
        //             component: LayoutInset,
        //             redirect: '/maintenance-implement/project-manage/maintenance-project/index',
        //             children: [
        //                 {
        //                     path: 'index',
        //                     name: 'MaintenanceProjectIndex',
        //                     meta: {
        //                         title: '列表',
        //                         componentName: 'MaintenanceProjectIndex',
        //                         details: ['MaintenanceProjectEdit', 'MaintenanceProjectDetail'],
        //                         activeMenu: '/maintenance-implement/project-manage/maintenance-project/index'
        //                     },
        //                     component: () => import('@/views/maintenance-implement/project-manage/maintenance-project/index'),
        //                     hide: true
        //                 },
        //                 {
        //                     path: 'add',
        //                     name: 'MaintenanceProjectAdd',
        //                     meta: {
        //                         title: '新建',
        //                         activeMenu: '/maintenance-implement/project-manage/maintenance-project/index'
        //                     },
        //                     component: () => import('@/views/maintenance-implement/project-manage/maintenance-project/add'),
        //                     hide: true
        //                 },
        //                 {
        //                     path: 'edit',
        //                     name: 'MaintenanceProjectEdit',
        //                     meta: {
        //                         title: '编辑',
        //                         activeMenu: '/maintenance-implement/project-manage/maintenance-project/index'
        //                     },
        //                     component: () => import('@/views/maintenance-implement/project-manage/maintenance-project/add'),
        //                     hide: true
        //                 },
        //                 {
        //                     path: 'detail',
        //                     name: 'MaintenanceProjectDetail',
        //                     meta: {
        //                         title: '详情',
        //                         activeMenu: '/maintenance-implement/project-manage/maintenance-project/index'
        //                     },
        //                     component: () => import('@/views/maintenance-implement/project-manage/maintenance-project/detail'),
        //                     hide: true
        //                 }
        //             ]
        //         }
        //     ]
        // },
        {
            path: 'maintenance-project',
            component: LayoutInset,
            name: 'MaintenanceProject',
            meta: {
                title: '养护工程管理',
                iconSvg: 'project-manage',
                code: 'dlyh_a4_b35_1'
            },
            redirect: '/maintenance-implement/maintenance-project/project-ledger/index',
            children: [
                {
                    path: 'project-ledger',
                    name: 'MaintenanceProjectProjectLedger',
                    meta: {
                        title: '工程台账管理',
                        code: 'dlyh_b35_c88_1'
                    },
                    redirect: '/maintenance-implement/maintenance-project/project-ledger/index',
                    component: LayoutInset,
                    children: [
                        {
                            path: 'index',
                            name: 'ProjectLedgerList',
                            meta: {
                                title: '列表',
                                componentName: 'ProjectLedgerList',
                                details: [
                                    'ProjectLedgerAdd',
                                    'ProjectLedgerEdit',
                                    'ProjectLedgerDetail',
                                ]
                            },
                            hide: true,
                            component: () => import('@/views/maintenance-implement/maintenance-project/project-ledger/index')
                        },
                        {
                            path: 'detail',
                            name: 'ProjectLedgerDetail',
                            hide: true,
                            meta: {
                                title: '养护工程详情',
                                activeMenu: '/maintenance-implement/maintenance-project/project-ledger/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/project-ledger/detail')
                        },
                        {
                            path: 'add',
                            name: 'ProjectLedgerAdd',
                            hide: true,
                            meta: {
                                title: '新增养护工程',
                                activeMenu: '/maintenance-implement/maintenance-project/project-ledger/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/project-ledger/add')
                        },
                        {
                            path: 'edit',
                            name: 'ProjectLedgerEdit',
                            hide: true,
                            meta: {
                                title: '编辑养护工程',
                                activeMenu: '/maintenance-implement/maintenance-project/project-ledger/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/project-ledger/add')
                        },
                        {
                            path: 'add-unit-price',
                            name: 'ProjectLedgerUnitPriceAdd',
                            hide: true,
                            meta: {
                                title: '新增单价',
                                activeMenu: '/maintenance-implement/maintenance-project/project-ledger/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/project-ledger/unit-price/add')
                        },
                        {
                            path: 'detail-unit-price',
                            name: 'ProjectLedgerUnitPriceDetail',
                            hide: true,
                            meta: {
                                title: '单价详情',
                                activeMenu: '/maintenance-implement/maintenance-project/project-ledger/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/project-ledger/unit-price/detail')
                        },
                        {
                            path: 'add-change-design',
                            name: 'ProjectLedgerChangeDesignAdd',
                            hide: true,
                            meta: {
                                title: '变更设计',
                                activeMenu: '/maintenance-implement/maintenance-project/project-ledger/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/project-ledger/change-design/add')
                        },
                        {
                            path: 'detail-change-design',
                            name: 'ProjectLedgerChangeDesignDetail',
                            hide: true,
                            meta: {
                                title: '变更设计详情',
                                activeMenu: '/maintenance-implement/maintenance-project/project-ledger/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/project-ledger/change-design/detail')
                        },
                        {
                            path: 'add-waste-project',
                            name: 'ProjectLedgerWasteProjectAdd',
                            hide: true,
                            meta: {
                                title: '废置工程',
                                activeMenu: '/maintenance-implement/maintenance-project/project-ledger/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/project-ledger/waste-project/add')
                        },
                        {
                            path: 'detail-waste-project',
                            name: 'ProjectLedgerWasteProjectDetail',
                            hide: true,
                            meta: {
                                title: '废置工程详情',
                                activeMenu: '/maintenance-implement/maintenance-project/project-ledger/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/project-ledger/waste-project/detail')
                        },
                    ]
                },
                {
                    path: 'metrological-application',
                    name: 'MetrologicalApplication',
                    meta: {
                        title: '计量申请',
                        code: 'dlyh_b35_c89_1'
                    },
                    component: LayoutInset,
                    redirect: '/maintenance-implement/maintenance-project/metrological-application/index',
                    children: [
                        {
                            path: 'index',
                            name: 'MetrologicalApplicationIndex',
                            meta: {
                                title: '列表',
                                activeMenu: '/maintenance-implement/maintenance-project/metrological-application/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/metrological-application/index'),
                            hide: true
                        },
                        {
                            path: 'add',
                            name: 'MetrologicalApplicationAdd',
                            meta: {
                                title: '新建',
                                activeMenu: '/maintenance-implement/maintenance-project/metrological-application/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/metrological-application/add/index.vue'),
                            hide: true
                        },
                        {
                            path: 'edit',
                            name: 'MetrologicalApplicationEdit',
                            meta: {
                                title: '编辑',
                                activeMenu: '/maintenance-implement/maintenance-project/metrological-application/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/metrological-application/add/index.vue'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'MetrologicalApplicationDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/maintenance-implement/maintenance-project/metrological-application/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/metrological-application/detail/index.vue'),
                            hide: true
                        }
                    ]
                },
                {
                    path: 'metrological-approval',
                    name: 'MetrologicalApproval',
                    meta: {
                        title: '计量审批',
                        code: 'dlyh_b35_c90_1'
                    },
                    component: LayoutInset,
                    redirect: '/maintenance-implement/maintenance-project/metrological-approval/index',
                    children: [
                        {
                            path: 'index',
                            name: 'MetrologicalApprovalIndex',
                            meta: {
                                title: '列表',
                                activeMenu: '/maintenance-implement/maintenance-project/metrological-approval/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/metrological-approval/index'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'MetrologicalApprovalDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/maintenance-implement/maintenance-project/metrological-approval/index'
                            },
                            component: () => import('@/views/maintenance-implement/maintenance-project/metrological-application/detail/index.vue'),
                            hide: true
                        }
                    ]
                }
            ]
        },
        {
            path: 'operation-safety',
            component: LayoutInset,
            name: 'OperationSafety',
            meta: {
                title: '养护作业安全',
                iconSvg: 'operation-safety',
                code: 'dlyh_a4_b9_1'
            },
            redirect: '/maintenance-implement/operation-safety/standard/index',
            children: [
                {
                    path: 'standard',
                    name: 'Standard',
                    meta: {
                        title: '安全作业规范',
                        code: 'dlyh_b9_c17_1'
                    },
                    component: LayoutInset,
                    redirect: '/maintenance-implement/operation-safety/standard/index',
                    children: [
                        {
                            path: 'index',
                            name: 'StandardIndex',
                            meta: {
                                title: '列表',
                                activeMenu: '/maintenance-implement/operation-safety/standard/index'
                            },
                            component: () => import('@/views/maintenance-implement/operation-safety/standard/index'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'StandardDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/maintenance-implement/operation-safety/standard/index'
                            },
                            component: () => import('@/views/maintenance-implement/operation-safety/standard/detail'),
                            hide: true
                        },
                        {
                            path: 'add',
                            name: 'StandardAdd',
                            meta: {
                                title: '新建',
                                activeMenu: '/maintenance-implement/operation-safety/standard/index'
                            },
                            component: () => import('@/views/maintenance-implement/operation-safety/standard/add'),
                            hide: true
                        },
                        {
                            path: 'edit',
                            name: 'StandardEdit',
                            meta: {
                                title: '编辑',
                                activeMenu: '/maintenance-implement/operation-safety/standard/index'
                            },
                            component: () => import('@/views/maintenance-implement/operation-safety/standard/add'),
                            hide: true
                        }
                    ]
                }
            ]
        },
        {
            path: 'implement',
            component: LayoutInset,
            name: 'PlanImplementManage',
            meta: {
                title: '养护工程报表',
                iconSvg: 'table',
                code: 'dlyh_a4_b10_1'
            },
            redirect: '/maintenance-implement/implement/maintenance/index',
            children: [
                {
                    path: 'maintenance',
                    name: 'PlanMaintenance',
                    meta: {
                        title: '养护工程进度',
                        code: 'dlyh_b10_c18_1'
                    },
                    component: LayoutInset,
                    redirect: '/maintenance-implement/implement/maintenance/index',
                    children: [
                        {
                            path: 'index',
                            name: 'PlanMaintenanceIndex',
                            meta: {
                                title: '列表',
                                componentName: 'PlanMaintenanceIndex',
                                details: []
                            },
                            component: () => import('@/views/maintenance-implement/implement/maintenance/index'),
                            hide: true
                        },
                        {
                            path: 'add',
                            name: 'PlanMaintenanceAdd',
                            meta: {
                                title: '新建',
                                activeMenu: '/maintenance-implement/implement/maintenance/index'
                            },
                            component: () => import('@/views/maintenance-implement/implement/maintenance/add'),
                            hide: true
                        },
                        {
                            path: 'edit',
                            name: 'PlanMaintenanceEdit',
                            meta: {
                                title: '编辑',
                                activeMenu: '/maintenance-implement/implement/maintenance/index'
                            },
                            component: () => import('@/views/maintenance-implement/implement/maintenance/add'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'PlanMaintenanceDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/maintenance-implement/implement/maintenance/index'
                            },
                            component: () => import('@/views/maintenance-implement/implement/maintenance/detail'),
                            hide: true
                        }
                    ]
                }
            ]
        }
    ]
}
export default maintenanceImplement
